let array = [1, 2, 3]

array = new Proxy(array, {
	get(target, prop, receiver) {
		if (prop < 0) {
			return target.at(prop)
		} else {
			return Reflect.get(target, prop, receiver)
		}
	},
})

console.log(array[-1]) // 3
console.log(array[-2]) // 2

// 其他数组功能应保持“原样”
